package cn.tedu.interfacex;

public interface StudyEnglish {
//    public static final int MAX = 5;
    int MAX = 5;
    void speakEnglish();
    //接口中不能定义普通方法
//    public void method(){
//
//    }
}
//class Person implements StudyEnglish{
//    @Override
//    public void speakEnglish() {
//        System.out.println("开始讲英语");
//    }
//}
abstract class Person implements StudyEnglish{}
class Teacher extends Person{
    @Override
    public void speakEnglish() {
        System.out.println("老师讲英语");
    }
}
